package src.lab02.test01.Test36;

public class Postgraduate extends Student {
    String calGrade;

    @Override
    String calGrade() {
        String grade="";
        double average=average();
        if (average>=90&&average<=100)
            grade="优秀";
        else if (average>80&&average<90)
            grade="良好";
        else if (average>70&&average<80)
            grade="一般";
        else if (average>60&&average<70)
            grade="及格";
        else grade="不及格";
        return grade;
    }
}
